package org.jeecg.modules.utils;

/*
 * 项目名称:    wms-server-jeecg
 * 接口描述:    //
 * 创建人员:    zhaojun
 * 创建时间:    2024-01-15
 */
public class DockContentUtil {

    public static String addZero(String code) {
        final int num = 18;
        if (org.apache.commons.lang3.StringUtils.isBlank(code)) {
            return "";
        }
        if (code.length() < 18) {
            int addNum = num - code.length();
            StringBuffer stringBuffer = new StringBuffer("");
            for (int i = 0; i < addNum; i++) {
                stringBuffer.append("0");
            }
            return stringBuffer.append(code).toString();
        }
        return code;
    }
}
